Add Member To Channel
AutomatR.Slack.Activities.AddMembertoChannel
The "Add Member To Channel" activity in AutomatR is part of the Slack Channel activities package, facilitating the addition of users to a specified Slack channel. This activity streamlines collaboration by automating the process of inviting users to join specific channels.
Properties
Name | Description |
---|---|
Input | |
Channel Name | Enter the channel name to which you want to add the specified users. Required argument. |
User Name | Enter the user name of the user to be added to the channel. Required argument. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Add Member To Channel" activity. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Returns true or false based on the success of the member addition operation. Boolean variable to store the operation result. |
How to use:
- Drag and drop the "Add Member To Channel" activity onto the workflow.
- Configure the properties by specifying the channel name and user name.
- Optionally, configure the delay.
- Execute the workflow to add the specified user to the Slack channel.
Example: Consider an example where the "Add Member To Channel" activity is used to add a user named "JohnDoe" to a Slack channel named "General":
Add Member To Channel:
Channel Name: "General"
User Name: "JohnDoe"
Delay: 2
Result: isMemberAdded
In this example, the activity adds the user "JohnDoe" to the "General" channel in Slack. The result of the operation (success or failure) is stored in the Boolean variable "isMemberAdded" for further handling in the workflow.